#include <stdio.h>
#include <stdlib.h>

#include "libgeisyr.h"

int main()
{
        // Test: GetAllSensorList
        struct tsensorlist *sl1;
        int al=0;
        GetAllSensorList(&sl1, &al);
        printf("GetSensorList: %s\t%i\t%d\n", sl1->sensorpath, sl1->sensortype, al);
        free(sl1);

        // Test: GetTempSensorValue
        double temp1=0;
        GetTempSensorValue("wohnzimmer:temperatur_aussen", 0, &temp1);
        printf("GetTempSensorValue: %g\n", temp1);

        // Test: GetAlternativeRooms
        troomname* rn1;
        GetAlternativeRooms("G.216", 5, &rn1);
        printf("GetAlternativeRooms: %s\t%s\n", rn1[0], rn1[1]);
        free(rn1);

        return 0;
}
